package com.yanyun.yczyy.api.entities;

import lombok.Data;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;

@Data
public class TblIOData {
    private String resourceName;
    private String ioTime;
    private String value;

    public Date parseIOTime() throws ParseException {
        SimpleDateFormat layout = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        return layout.parse(ioTime);
    }
}
